package com.zczc.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 15:20 2018-12-12
 * @Modify by:
 */
@EnableTransactionManagement
@SpringBootApplication
@ComponentScan("com.zczc")
@EnableSwagger2
public class App extends SpringBootServletInitializer {


  private final static Logger Log=LoggerFactory.getLogger(App.class);

  @Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(App.class);
  }

  public static void main(String[] args) {
    SpringApplication.run(App.class);
    Log.debug("==============================>>>启动成功");
  }

}
